package com.zhijian.medical.dao.local;


import com.zhijian.medical.entity.po.ExperimentProcessKzy;
import com.zhijian.medical.entity.vo.request.ExperimentProcessKzySearchVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessKzyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExperimentProcessKzyMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验流程id进行删除
     *
     * @param experimentProcessId
     * @return
     */
    int deleteByExperimentProcessId(Long experimentProcessId);

    int insert(ExperimentProcessKzy record);

    int insertSelective(ExperimentProcessKzy record);

    ExperimentProcessKzy selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ExperimentProcessKzy record);

    int updateByPrimaryKey(ExperimentProcessKzy record);

    int count(ExperimentProcessKzySearchVo experimentProcessKzySearchVo);

    List<ExperimentProcessKzyVo> selectList(ExperimentProcessKzySearchVo experimentProcessKzySearchVo);

    ExperimentProcessKzyVo selectVoById(Long id);

    /**
     * 根据实验流程id与扩增仪id查找数据
     *
     * @param experimentProcessId
     * @param deviceId
     * @return
     */
    ExperimentProcessKzyVo selectVoByExperimentProcessIdAndDeviceId(@Param("experimentProcessId") Long experimentProcessId, @Param("deviceId") Long deviceId);
}